package org.edu.modules.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.edu.modules.base.entity.VeBaseSysRoleMenu;

@Mapper
public abstract interface VeBaseSysRoleMenuMapper extends BaseMapper<VeBaseSysRoleMenu> {

    public abstract int deleteByRoleId(Integer roleId);

    public abstract int deleteModelByAppId(@Param("roleId") Integer roleId, @Param("appId") String appId);

    public abstract List<Map<String, Object>> getSysRoleMenuListByRoleIdAppId(@Param("roleId") Integer roleId, @Param("appId") String appId);

    public abstract List<Map<String, Object>> getSysRoleMenuListByUserIdAppIdPid(@Param("userId") String userId,@Param("appId")  String appId, @Param("pid") Integer pid);

    public abstract int deleteRoleMenuByMenuId(String menuId);

    public abstract int deleteRoleUserByRoleId(String roleId);

    public abstract int deleteRoleMenuByRoleId(String roleId);
}
